package com.desmart.renjiao.commission;

import com.desmart.renjiao.bean.CommissionInfo;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;

public interface Commission{

    interface CommissionM extends BaseModel{

        Observable<ResponseBody> getUrl(RequestBody string);

    }

    interface CommissionV extends BaseView{

        void onCommissionListResult(List<CommissionInfo> data);
    }

    abstract class CommissionP extends BasePresenter<CommissionM,CommissionV>{

        abstract void getSapUrl();

        abstract void getOaUrl();

        abstract void getCommissionList(int page,String field,String order,String type);

    }

}
